﻿using System.Reflection;

namespace Foundation.Core
{
    /// <summary>
    /// class、struct member select item
    /// </summary>
    public class TypeMemberSelectItem : SelectItem
    {
        public TypeMemberSelectItem(MemberInfo memberInfo, IDictionary<string, object> dict = null)
            : base(dict)
        {
            MemberInfo = memberInfo;
            Name = memberInfo.Name;
        }

        public virtual string Name { get; set; }

        [Newtonsoft.Json.JsonIgnore, System.Text.Json.Serialization.JsonIgnore]
        public MemberInfo MemberInfo { get; }
    }
}
